package com.scgl.order.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.scgl.order.mapper.ScglPlanMapper;
import com.scgl.order.domain.ScglPlan;
import com.scgl.order.service.IScglPlanService;

/**
 * 关联生产计划Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-30
 */
@Service
public class ScglPlanServiceImpl implements IScglPlanService 
{
    @Autowired
    private ScglPlanMapper scglPlanMapper;

    /**
     * 查询关联生产计划
     * 
     * @param planId 关联生产计划主键
     * @return 关联生产计划
     */
    @Override
    public ScglPlan selectScglPlanByPlanId(Long planId)
    {
        return scglPlanMapper.selectScglPlanByPlanId(planId);
    }

    /**
     * 查询关联生产计划列表
     * 
     * @param scglPlan 关联生产计划
     * @return 关联生产计划
     */
    @Override
    public List<ScglPlan> selectScglPlanList(ScglPlan scglPlan)
    {
        return scglPlanMapper.selectScglPlanList(scglPlan);
    }

    /**
     * 新增关联生产计划
     * 
     * @param scglPlan 关联生产计划
     * @return 结果
     */
    @Override
    public int insertScglPlan(ScglPlan scglPlan)
    {
        return scglPlanMapper.insertScglPlan(scglPlan);
    }

    /**
     * 修改关联生产计划
     * 
     * @param scglPlan 关联生产计划
     * @return 结果
     */
    @Override
    public int updateScglPlan(ScglPlan scglPlan)
    {
        return scglPlanMapper.updateScglPlan(scglPlan);
    }

    /**
     * 批量删除关联生产计划
     * 
     * @param planIds 需要删除的关联生产计划主键
     * @return 结果
     */
    @Override
    public int deleteScglPlanByPlanIds(Long[] planIds)
    {
        return scglPlanMapper.deleteScglPlanByPlanIds(planIds);
    }

    /**
     * 删除关联生产计划信息
     * 
     * @param planId 关联生产计划主键
     * @return 结果
     */
    @Override
    public int deleteScglPlanByPlanId(Long planId)
    {
        return scglPlanMapper.deleteScglPlanByPlanId(planId);
    }
}
